package com.adv.ems.model.param;

import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class RemoteUploadDataParam {
    @Size(min = 1, max = 1000)
    private List<Item> items;

    public RemoteUploadDataParam() {
        items = new ArrayList<Item>();
    }

    @Data
    public static class Item {
        @NotNull
        private Long pointId;
        @NotNull
        private Double colData;
        @NotEmpty
        private String colDate;
        private Map<String, Object> ext;
    }
}
